package input;

import java.io.FileInputStream;
//import java.io.FileNotFoundException;
import java.io.IOException;
//import java.sql.SQLOutput;
//import java.util.Arrays;

public class FileInputStreamDemo3 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("G:\\Javatest2\\file\\b.txt");
        byte[] bys=new byte[2];
        int len;
        while((len=fis.read(bys))!=-1){
            String s=new String(bys,0,len);
            System.out.print(s);
        }


        fis.close();
    }
}
